﻿using System.Xml.Serialization;
using Yun.Domain;

namespace Yun.Marketing
{
    public class RedEnvelope
    {
        /// <summary>
        /// 支付ID
        /// </summary>
        [XmlElement("pay_id")]
        public int PayId { get; set; }

        /// <summary>
        /// 剩余未领取金额
        /// </summary>
        [XmlElement("remain_total_amount")]
        public int RemainTotalAmount { get; set; }

        /// <summary>
        /// 指定的接收红包的人，多个用英文逗号分隔
        /// </summary>
        [XmlElement("directional_personnel")]
        public string DirectionalPersonnel { get; set; }

        /// <summary>
        /// 剩余数量
        /// </summary>
        [XmlElement("remain_num")]
        public int RemainNum { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [XmlElement("start_time")]
        public string StartTime { get; set; }


        /// <summary>
        /// 结束时间
        /// </summary>
        [XmlElement("end_time")]
        public string EndTime { get; set; }

        /// <summary>
        /// ID
        /// </summary>
        [XmlElement("id")]
        public int Id { get; set; }

        /// <summary>
        /// 发放数量
        /// </summary>
        [XmlElement("total_quantity")]
        public int TotalQuantity { get; set; }


        /// <summary>
        /// 发放人信息
        /// </summary>
        [XmlElement("issuing_user_info")]
        public UserProfile IssuingUserInfo { get; set; }


        /// <summary>
        /// 备注
        /// </summary>
        [XmlElement("remark")]
        public string Remark { get; set; }


        /// <summary>
        /// 分配方式
        /// </summary>
        [XmlElement("mode_of_distribution")]
        public int ModeOfDistribution { get; set; }


        /// <summary>
        /// 奖品类型
        /// </summary>
        [XmlElement("red_envolope_funds")]
        public int RedEnvelopeFunds { get; set; }


        /// <summary>
        /// 红包总金额
        /// </summary>
        [XmlElement("total_amount")]
        public int TotalAmount { get; set; }

        /// <summary>
        /// 是否定向人群发送 
        /// </summary>
        [XmlElement("is_directional_personnel")]
        public bool IsDirectionalPersonnel { get; set; }
    }
}
